package pojo;

import lombok.Data;

import java.util.List;

@Data
public class ExerciseResult {
    private List<Exercise> problems; // 所有题目及结果
    private int totalCount; // 总题数
    private int correctCount; // 正确题数
    private double accuracy; // 正确率（百分比）
    private String timestamp; // 练习时间戳

    // 构造方法、getter/setter
    public ExerciseResult(List<Exercise> problems, int total, int correctCount, double accuracy, String timestamp){
        this.problems = problems;
        this.totalCount = total;
        this.correctCount = correctCount;
        this.accuracy = accuracy;
        this.timestamp = timestamp;

    }
}
